home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / imake / RCS / Library.tmpl,v < prev    next >
Encoding:
Text File  |  1992-08-20  |  3.5 KB  |  151 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.2
  10. date     92.08.20.16.58.33;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     91.10.25.11.47.32;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @checking in for rab -- jhh
  27. @
  28. text
  29. @/*
  30.  * Library imakefile info  - this contains any special redefinitions, etc.
  31.  * that Imakefiles in the various library subtrees will need.
  32.  *
  33.  * Before including this, you must set the following boolean variables:
  34.  * DoNormalLib, DoSharedLib, DoDebugLib, DoProfileLib
  35.  */
  36.  
  37. XCOMM $XConsortium: Library.tmpl,v 1.11 91/07/27 13:10:13 rws Exp $
  38.  
  39. #ifndef LibraryCcCmd
  40. #if DoSharedLib && defined(SharedLibraryCcCmd)
  41. #define LibraryCcCmd SharedLibraryCcCmd
  42. #else
  43. #define LibraryCcCmd CcCmd
  44. #endif
  45. #endif
  46. #ifndef LibraryCCOptions
  47. #if DoSharedLib && defined(SharedLibraryCCOptions)
  48. #define LibraryCCOptions SharedLibraryCCOptions
  49. #else
  50. #define LibraryCCOptions DefaultCCOptions
  51. #endif
  52. #endif
  53. #ifndef LibraryDefines
  54. #define LibraryDefines StandardDefines
  55. #endif
  56. #ifndef LibraryCDebugFlags
  57. #ifdef sprite
  58. #define LibraryCDebugFlags OptimizedCDebugFlags DebuggableCDebugFlags
  59. #else
  60. #define LibraryCDebugFlags OptimizedCDebugFlags
  61. #endif
  62. #endif
  63. #ifndef AvoidNullMakeCommand
  64. #define AvoidNullMakeCommand NO
  65. #endif
  66. #if AvoidNullMakeCommand
  67. _NULLCMD_ = @@ echo -n
  68. #endif
  69.  
  70.          CC = LibraryCcCmd
  71.   CCOPTIONS = LibraryCCOptions
  72. STD_DEFINES = LibraryDefines
  73. CDEBUGFLAGS = LibraryCDebugFlags
  74.  
  75. #if DoDebugLib
  76. #define _DebuggedLibMkdir() LibMkdir(debugger)
  77. #define _DebuggedObjCompile(options) DebuggedLibObjCompile(options)
  78. #define _DebuggedCleanDir() LibCleanDir(debugger)
  79. #else
  80. #define _DebuggedLibMkdir() $(_NULLCMD_)
  81. #define _DebuggedObjCompile(options) $(_NULLCMD_)
  82. #define _DebuggedCleanDir() $(_NULLCMD_)
  83. #endif
  84.  
  85. #if DoProfileLib
  86. #define _ProfiledLibMkdir() LibMkdir(profiled)
  87. #define _ProfiledObjCompile(options) ProfiledLibObjCompile(options)
  88. #define _ProfiledCleanDir() LibCleanDir(profiled)
  89. #else
  90. #define _ProfiledLibMkdir() $(_NULLCMD_)
  91. #define _ProfiledObjCompile(options) $(_NULLCMD_)
  92. #define _ProfiledCleanDir() $(_NULLCMD_)
  93. #endif
  94.  
  95. #if DoSharedLib && DoNormalLib
  96. #define _SharedLibMkdir() LibMkdir(shared)
  97. #define _SharedObjCompile(options) SharedLibObjCompile(options)
  98. #define _SharedCleanDir() LibCleanDir(shared)
  99. #else
  100. #define _SharedLibMkdir() $(_NULLCMD_)
  101. #define _SharedObjCompile(options) $(_NULLCMD_)
  102. #define _SharedCleanDir() $(_NULLCMD_)
  103. #endif
  104.  
  105. #if DoSharedLib && !DoNormalLib
  106. #define _NormalObjCompile(options) NormalSharedLibObjCompile(options)
  107. #else
  108. #define _NormalObjCompile(options) NormalLibObjCompile(options)
  109. #endif
  110.  
  111. #ifndef LibraryObjectRule
  112. #define LibraryObjectRule()                        @@@@\
  113. all::                                    @@@@\
  114.     _DebuggedLibMkdir()                        @@@@\
  115.     _ProfiledLibMkdir()                        @@@@\
  116.     _SharedLibMkdir()                        @@@@\
  117.                                     @@@@\
  118. .c.o:                                    @@@@\
  119.     _DebuggedObjCompile($(_NOOP_))                    @@@@\
  120.     _ProfiledObjCompile($(_NOOP_))                    @@@@\
  121.     _SharedObjCompile($(_NOOP_))                    @@@@\
  122.     _NormalObjCompile($(_NOOP_))                    @@@@\
  123.                                     @@@@\
  124. clean::                                    @@@@\
  125.     _DebuggedCleanDir()                        @@@@\
  126.     _ProfiledCleanDir()                        @@@@\
  127.     _SharedCleanDir()                        @@@@\
  128.  
  129. #endif /* LibraryObjectRule */
  130.  
  131. #ifndef SpecialLibObjectRule
  132. #define SpecialLibObjectRule(objs,depends,options)            @@@@\
  133. objs: depends                                @@@@\
  134.     _DebuggedObjCompile(options)                    @@@@\
  135.     _ProfiledObjCompile(options)                    @@@@\
  136.     _SharedObjCompile(options)                    @@@@\
  137.     _NormalObjCompile(options)                    @@@@\
  138.  
  139. #endif /* SpecialLibObjectRule */
  140. @
  141.  
  142.  
  143. 1.1
  144. log
  145. @Initial revision
  146. @
  147. text
  148. @d29 3
  149. d33 1
  150. @
  151.